<%@ page import="com.realtybaron.auction.Auction" %>
<%--
  Created by IntelliJ IDEA.
  User: marc
  Date: Feb 8, 2010
  Time: 11:28:16 AM
  THIS SOFTWARE IS COPYRIGHTED.  THE SOFTWARE MAY NOT BE COPIED REPRODUCED, TRANSLATED, OR REDUCED TO ANY ELECTRONIC
  MEDIUM OR MACHINE READABLE FORM WITHOUT THE PRIOR WRITTEN CONSENT OF SOCO TECHNOLOGIES.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%Auction auction = Auction.class.cast(request.getAttribute("auction"));%>

<html>
<head>
  <title>View Auction</title>
  <link rel="stylesheet" type="text/css" href="<c:url value='style.css' />"/>
</head>
<body>
<h1>
  <%=auction.getTitle()%>
</h1>

<div class="data">
  <div class="data_table">
    <div class="data_row">
      <div class="data_label">Current Bid</div>
      <div class="data_value">
        <%=auction.getBid_quote()%>
      </div>
    </div>
    <div class="data_row">
      <div class="data_label">Remaining Time</div>
      <div class="data_value">
        <%=auction.getTime_remaining()%>
      </div>
    </div>
    <div class="data_row">
      <div class="data_label">Total Bids</div>
      <div class="data_value">
        <%=auction.getBid_count()%>
      </div>
    </div>
    <div class="data_row">
      <div class="data_label">Bid Leader(s)</div>
      <div class="data_value">
        <%=auction.getBid_leaders()%>
      </div>
    </div>
  </div>
</div>
</body>
</html>